<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var countryList=["America","Greece","Britain","Canada","China","Egypt"];
			var count=0;
			  for(var i=0;i<countryList.length;i++){
			        // document.write(countryList[i]+"<br/>");
			        if(countryList[i].indexOf("a")!=-1||countryList[i].indexOf("A")!=-1)
			            count++;
			    }
			 alert(count)
		</script>
	</body>
</html>
